package game.entity.behavior;

import edu.monash.fit2099.engine.Action;
import edu.monash.fit2099.engine.Actor;
import edu.monash.fit2099.engine.GameMap;
import game.entity.action.DeathAction;
import game.entity.behavior.Behaviour;

/**
 * A class that figures out a MoveAction that will move the actor one step 
 * closer to a target Actor.
 */
public class DeathBehaviour implements Behaviour {

	private Actor target;

	/**
	 * Constructor.
	 *
	 * @param subject the Actor to follow
	 */
	public DeathBehaviour(Actor subject) {
		this.target = subject;
	}

	@Override
	public Action getAction(Actor actor, GameMap map) {

		return new DeathAction(actor);
	}

}